//
//  ViewController.m
//  05-轮播相册
//
//  Created by 王道林 on 16/7/20.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "ViewController.h"
#import "AlbumView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSMutableArray *arrPic = [NSMutableArray array];
    for (int i = 1; i < 7; i++) {
        NSString *string = [NSString stringWithFormat:@"%d.jpg", i];
        UIImage *image = [UIImage imageNamed:string];
        [arrPic addObject:image];
    }
    
    
    AlbumView *album = [[AlbumView alloc] initWithFrame:self.view.frame PicArray:arrPic];
    [self.view addSubview:album];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
